<extend name="Index/index" />
<block name="main">
	<div class="row-fluid sortable">		
				<div class="box span12">
					<div class="box-header well" data-original-title>
						<!-- <h2><i class="icon-user"></i> Members</h2> -->
						<div class="box-icon">
							<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
							<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
							<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
						</div>
					</div>
					<div id="search">
		      		<form action="<{:U('index')}>" method='get'>
		      			 订单日期: <input type="text" name="name" class='search'>
		      			 <input class="button" type="submit" >
		     		 </form>
		    	</div>
					<div class="box-content">
						<table class="table table-striped table-bordered bootstrap-datatable datatable">
						  <thead>
							  <tr>
								  <th>订单ID</th>
								  <th>订单编号</th>
								  <th>电影场次ID</th>
								  <th>用户名</th>
								  <th>订单总价</th>
								  <th>票数</th>
								  <th>下单时间</th>
								  <th>订单状态</th>
								  <th>操作</th>
							  </tr>
						  </thead>   
						  <tbody>
							<!-- start volist -->
							<empty name="list">
								<tr>
									<td colspan=8><{$row}></td>
								</tr>
							<else />
						  	<volist name="list" id="vo">

								<tr>
									<td><{$vo.id}></td>
									<td class="center"><{$vo.ordernumber}></td>
									<td class="center"><{$vo.sid}></td>
									<td class="center"><{$vo.phone}></td>
									<td class="center"><{$vo.amount}></td>
									<td class="center"><{$vo.num}></td>
									<td class="center"><{$vo.time|date='Y-m-d h:i:s',###}></td>
									<td class="center">
										<if condition="$vo.status eq '0'">未支付
										<elseif condition="$vo.status eq '1'" />已支付未取票
										<else />已支付已取票</if>
									</td>
									<td class="center">
										<a class="btn btn-danger" href="<{:U('Order/delete',array('id'=>$vo['id']))}>">
											<i class="icon-trash icon-white"></i> 
											删除
										</a>
									</td>
								</tr>
							
							</volist> <!-- end volist -->
							</empty>
						  </tbody>
					  </table>            
					</div>
				</div><!--/span-->
			
			</div><!--/row-->
</block>